﻿/*
*  	Graffiti 1.1.1
*  	______________________________________________________________________
*  	www.nocircleno.com/graffiti/
*/

/*
* 	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* 	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* 	OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* 	NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* 	HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* 	WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* 	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* 	OTHER DEALINGS IN THE SOFTWARE.
*/

package com.nocircleno.graffiti.tools {
	
	/**
	* The Tool Drawing Mode
	*/
	public class ToolMode {
		
		/**
		*Use for regular drawing.
		*/
		public static const NORMAL:String = "normal";
		
		/**
		*Use for eraser functionality.
		*/
		public static const ERASE:String = "erase";
		
		/**
		* The <code>validMode</code> method is used to validate a mode type.
		* 
		* @param mode String to check to see if it is a valid Tool Mode
		* 
		*/
		static public function validMode(mode:String):Boolean {
		
			var valid:Boolean = false;
			
			if(mode == ToolMode.NORMAL || mode == ToolMode.ERASE) {
				valid = true;
			}
			
			return valid;
			
		}
		
	}
	
	
}